package com.mvity.framework.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mvity.framework.common.base.BaseEntity;

/**
 * 附件信息表
 * 
 * @author vity
 * @date 2012-5-10
 * @mail vity.1215@gmail.com
 */
@Entity
@Table(name = "system_attachment")
public class SystemAttachment extends BaseEntity {

	private static final long serialVersionUID = 845760072562844541L;

	/**
	 * 附件关联实体ID
	 */
	@Column(name = "entity_id", length = 32)
	private String entityId;

	/**
	 * 附件关联实体类型
	 */
	@Column(name = "entity_name", length = 500)
	private String entityName;

	/**
	 * 附件原名称
	 */
	@Column(name = "attachment_name", length = 4000)
	private String attachmentName;

	/**
	 * 附件大小(单位:byte)
	 */
	@Column(name = "attachment_size")
	private Long attachmentSize;

	/**
	 * 附件存放路径
	 */
	@Column(name = "attachment_path", length = 4000)
	private String attachmentPath;

	/**
	 * 附件类型
	 */
	@Column(name = "attachment_type", length = 100)
	private String attachmentType;

	/**
	 * @return the entityId
	 */
	public String getEntityId() {
		return entityId;
	}

	/**
	 * @param entityId
	 *            the entityId to set
	 */
	public void setEntityId(String entityId) {
		this.entityId = entityId;
	}

	/**
	 * @return the entityName
	 */
	public String getEntityName() {
		return entityName;
	}

	/**
	 * @param entityName
	 *            the entityName to set
	 */
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	/**
	 * @return the attachmentName
	 */
	public String getAttachmentName() {
		return attachmentName;
	}

	/**
	 * @param attachmentName
	 *            the attachmentName to set
	 */
	public void setAttachmentName(String attachmentName) {
		this.attachmentName = attachmentName;
	}

	/**
	 * @return the attachmentSize
	 */
	public Long getAttachmentSize() {
		return attachmentSize;
	}

	/**
	 * @param attachmentSize
	 *            the attachmentSize to set
	 */
	public void setAttachmentSize(Long attachmentSize) {
		this.attachmentSize = attachmentSize;
	}

	/**
	 * @return the attachmentPath
	 */
	public String getAttachmentPath() {
		return attachmentPath;
	}

	/**
	 * @param attachmentPath
	 *            the attachmentPath to set
	 */
	public void setAttachmentPath(String attachmentPath) {
		this.attachmentPath = attachmentPath;
	}

	/**
	 * @return the attachmentType
	 */
	public String getAttachmentType() {
		return attachmentType;
	}

	/**
	 * @param attachmentType
	 *            the attachmentType to set
	 */
	public void setAttachmentType(String attachmentType) {
		this.attachmentType = attachmentType;
	}

}
